package com.hanrui.android.activity;

import android.os.Bundle;
import android.os.Handler;

import com.hanrui.android.R;
import com.hanrui.android.library.base.ImmersionBaseActivity;

import butterknife.ButterKnife;

/**
 * Splash
 */
public class SplashActivity extends ImmersionBaseActivity {

    @Override
    protected void initInjector() {}


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);

        unbinder = ButterKnife.bind(this);

        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {

                openActivityAndCloseThis(LoginActivity.class);

            }
        },2000);
    }


    @Override
    public boolean isSupportSwipeBack() {
        return false;
    }

}
